package vn.tictok.facebook;

import java.util.Map;

import org.json.JSONObject;

public interface FacebookService {
	JSONObject loginByToken(String facebookId, String accessToken);
	JSONObject login(String email, String password);
	
	JSONObject getNewFeeds(String requestId, int offset, int limit);
	JSONObject getWall(String requestId, String wallId, int offset, int limit);
	JSONObject getNewFeedsByFql(String requestId, int offset, int limit);
	JSONObject getWallByFql(String requestId, String wallId, int offset, int limit);
	JSONObject getComments(String requestId, String objectId);
	JSONObject getFriends(String requestId, int offset, int limit);
	JSONObject getProfile(String requestId, String profileId);
	JSONObject getPhotos(String requestId, String profileId, int offset, int limit);
	JSONObject getPhotoAlbums(String requestId, String profileId, int offset, int limit);
	JSONObject getPhotosInAlbum(String requestId, String albumId, int offset, int limit);
	JSONObject getFriendRequest(String requestId);
	JSONObject getNotifications(String requestId);
	
	JSONObject postWall(String requestId, String profileId, String wall);
	JSONObject postComment(String requestId, String objectId, String comment);
	JSONObject like(String requestId, String objectId);
	JSONObject unlike(String requestId, String objectId);
	JSONObject delete(String requestId, String objectId);
	
	JSONObject putObject(String requestId, String parent, String name, Map<String, String> data);
	JSONObject requestObject(String requestId, String id, Map<String, String> args);
	JSONObject requestObjects(String requestId, String[] ids, Map<String, String> args);
	JSONObject requestConnection(String requestId, String id, String connectionName, Map<String, String> args);
	JSONObject doFql(String requestId, String query);
	void logout(String profileId);
}
